package com.lianjinsu.shop.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import com.lianjinsu.shop.entity.enums.GoodsStatus;
import lombok.Getter;
import lombok.Setter;
import org.apache.ibatis.type.Alias;

import java.math.BigDecimal;

@Getter
@Setter
@TableName(value = "shop")
@Alias(value = "Shop")
public class Shop extends Model<Shop> {
    private static final long serialVersionUID = -345367403147001658L;

    @TableId
    private Integer shopId;

    private Integer typeId;

    private String shopName;

    private BigDecimal price;

    private String info;

    private String shopPic;

    private String tag;

    private String unit;

    private Integer stock;

    private Integer sale;

    @TableField("`desc`")
    private String desc;

    private Boolean hot;

    private String pdfUrl;

    private GoodsStatus status;
}
